import { Component, OnInit } from '@angular/core';
import { NzModalService, NzNotificationService, NzIconService } from 'ng-zorro-antd';
import { AppConsts } from '@shared/AppConsts';

// import * as G2 from '@antv/g2';
import { TitleService } from '@delon/theme';

@Component({
  selector: 'app-root',
  template: `<router-outlet></router-outlet>`,
})
export class RootComponent implements OnInit {
  constructor(
    private modalService: NzModalService,
    private notifyService: NzNotificationService,
    private _iconService: NzIconService,
    private titleService: TitleService,
  ) {
    // G2.track(false);
  }

  ngOnInit(): void {
    this.titleService.suffix = "后台管理系统";
    // this._iconService.addIcon(..[icons);
    // 覆盖abp自带的通知和mssage
    //   AppConsts.overrideAbpMessage(this.modalService);
    AppConsts.overrideAbpNotify(this.notifyService);
    AppConsts.overrideAbpMessage(this.modalService);
  }
}
